Skip to content

Sync upstream repo - #2

Merged
eirikvaa merged 23 commits into
Airthings:masterfrom
ChartsOrg:master
Nov 7, 2025
Merged

Sync upstream repo#2
eirikvaa merged 23 commits into
Airthings:masterfrom
ChartsOrg:master

Conversation

@eirikvaa

@eirikvaa eirikvaa commented Nov 7, 2025

Copy link
Copy Markdown

Issue Link 🔗

Goals ⚽

Implementation Details 🚧

Testing Details 🔍

drewster99 and others added 23 commits November 8, 2023 10:46
Resolves issue #5123 "Charts framework takes a long time to build" (#5123) by implementing the recommendations listed at the end of the issue:
- Set `Eager Linking` build setting to `Yes` for `Charts` framework target
- Set `Enable Module Verifier` build setting to `No` for `Debug` builds
- Set `Compilation Mode` to `Incremental` for `Debug` builds
- Add `-Xfrontend -warn-long-expression-type-checking=50` (or perhaps use `100`) to `OTHER_SWIFT_FLAGS` so the Swift compiler will emit warnings for expressions that take a long time to type-check. The number after the = is the number of milliseconds threshold, above which warnings will be emitted.
- Refactored the slow type-checking hotspots identified above in `ChartAnimationEasing.swift`, breaking out expressions which are slow to type-check into separate, quicker-to-type-check expressions.
…e methods

Resolved log10 and pow errors by explicitly calling Double.log10() and Double.pow().
Fixed type mismatch in division operation (shifted / magnitude).
Ensured compatibility with latest Swift compiler requirements.
Preparing to apply these fixes to the main library as well.
When updating the data set for the chart and then animating it, sometimes highlights are generated for the
            // removed sets. This guard prevents OOB in the case where the new set has less data than the old set
Fix crash in LineChartRenderer.swift when animating data set changes
Fix FloatingPoint functions: Replace instance calls with static Double
Added Safe index subscript logic for ChartData
Charts/issues/5197 - fixed host app crash by adding a check before ca…
Posibility to add Corner Radius for rounded bars in bar chart
Improves build time by 30%, resolving issue 5123 "Charts Framework takes a long time to build"

@LaStrada LaStrada left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 🚀

@eirikvaa
eirikvaa merged commit 0fb6181 into Airthings:master Nov 7, 2025
0 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants